package jp.co.dangonet.service.user;

import jp.co.dangonet.model.user.UserLoginRequest;
import jp.co.dangonet.model.user.UserProfile;

public class UserLoginService implements IUserLoginService {

	@Override
	public UserProfile userLogin(UserLoginRequest request) {
		String userName = request.getUserName();
		String password = request.getPassword();
		if(userName != null && userName.equals("admin") && password != null && password.equals("1234")) {
			UserProfile profile = new UserProfile();
			profile.setUserName("admin");
			return profile;
		}
		return null;
	}

}
